package com.example.pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;

public class HomePage extends InternalPage {
	
	@FindBy(id = "results")
	public WebElement resultsPlace;
	
	public boolean isFilmOnPage(String nameOfFilm) {
		return resultsPlace.findElements(By.cssSelector("div.movie_cover>img[title="+nameOfFilm+"]")).size()>0;
	}
	


}
